// Copyright (C) ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
//
// $Id: config.hpp 216 2008-09-03 08:13:29Z heavyzheng $
//

#ifndef ZZHENG_LOGGING_CONFIG_HPP_20080630__
#define ZZHENG_LOGGING_CONFIG_HPP_20080630__

#include <zzheng/config.hpp>

#if defined(ZZHENG_MSVC) && defined(ZZHENG_LOGGING_SHARED_LIB)
#  define ZZHENG_LOGGING_HAS_DECLSPEC 1
// Disable MSVC warnings:
// 4251: class 'X' needs to have dll-interface to be used by clients of class 'Y'.
// 4275: non dll-interface class 'X' used as base for dll-interface class 'Y'.
#  pragma warning(disable: 4251 4275)
#endif // ZZHENG_MSVC && ZZHENG_LOGGING_SHARED_LIB

#ifdef ZZHENG_LOGGING_HAS_DECLSPEC
#  ifdef ZZHENG_LOGGING_SOURCE
#    define ZZHENG_LOGGING_DECL __declspec(dllexport)
#  else
#    define ZZHENG_LOGGING_DECL __declspec(dllimport)
#  endif // ZZHENG_LOGGING_SOURCE
#endif // ZZHENG_LOGGING_HAS_DECLSPEC

#ifndef ZZHENG_LOGGING_DECL
#  define ZZHENG_LOGGING_DECL
#endif // ZZHENG_LOGGING_DECL

////////////////////////////////////////////////////////////////////////////////////////////////////

#include <zzheng/logging/user_config.hpp> // user-defined configurations

namespace zzheng {

    //! The zzheng.logging library.
    namespace logging { }

} // namespace zzheng

#endif // ZZHENG_LOGGING_CONFIG_HPP_20080630__


